package com.kgc.cgprovider.controller;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.cgapi.service.CGBJServiceApi;
import com.kgc.cgprovider.service.CGBJService;
import com.kgc.cgprovider.service.GYBJService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
public class CGBJController implements CGBJServiceApi {

    private Logger logger = LoggerFactory.getLogger(CGBJController.class);

    @Resource
    private CGBJService cgbjService;

    @Override
    public ResponseMsg getCGBJPage(Map<String, Object> param) {
        ResponseMsg responseMsg = cgbjService.getCGBJPage(param);
        return responseMsg;
    }

    @Override
    public ResponseMsg addCGBJ(Map<String, Object> param) {
        ResponseMsg responseMsg = cgbjService.addCGBJ(param);
        return responseMsg;
    }

    @Override
    public ResponseMsg getCGBJ(String code) {
        ResponseMsg responseMsg = cgbjService.getCGBJ(code);
        return responseMsg;
    }

    @Override
    public ResponseMsg modiCGBJ(Map<String, Object> param) {
        ResponseMsg responseMsg = cgbjService.modiCGBJ(param);
        return responseMsg;
    }

    @Override
    public ResponseMsg getCGBJPageByProId(Map<String, Object> map) {
        ResponseMsg responseMsg = cgbjService.getCGBJByProId(map);
        return responseMsg;
    }
}
